/*
 * Copyright 2025 arisgo@163.com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.arisgo.cloud.attendance.clazz.entity;

import com.arisgo.cloud.web.model.NumberIdWithTime;
import com.mybatisflex.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 班
 *
 * @author Coulson
 * @since 2024-12-31
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Table("att_class_info")
public class ClassInfo extends NumberIdWithTime {

    /**
     * 租户
     */
    private Long tenantId;
    /**
     * 班组
     */
    private Long groupId;
    /**
     * 日期
     */
    private LocalDate workDate;
    /**
     * 年 冗余字段
     */
    private Integer year;
    /**
     * 月 冗余字段
     */
    private Integer month;
    /**
     * 日 冗余字段
     */
    private Integer day;
    /**
     * 工时类型 0/标准工时制 1/综合工时制 2/不定时工时制
     */
    private Integer type;
    /**
     * 名称
     */
    private String name;
    /**
     * 名称
     */
    private String shortName;
    /**
     * 颜色
     */
    private String color;
    /**
     * 工时
     */
    private BigDecimal duration;
    /**
     * 是否标准排班 true/是 false/否
     */
    private Boolean isNormal;
    /**
     * 备注
     */
    private String remark;

    public static final String TENANT_ID = "tenant_id";
    public static final String GROUP_ID = "group_id";
    public static final String WORK_DATE = "work_date";
    public static final String YEAR = "year";
    public static final String MONTH = "month";
    public static final String DAY = "day";
    public static final String TYPE = "type";
    public static final String NAME = "name";
    public static final String SHORT_NAME = "short_name";
    public static final String COLOR = "color";
    public static final String DURATION = "duration";
    public static final String IS_NORMAL = "is_normal";
    public static final String REMARK = "remark";
}
